<?php get_header(); ?>
<div id="yui-main">
	<div class="yui-b">
			<?php if (have_posts()) : ?>
			<?php while (have_posts()) : the_post(); ?>
			<article id="post-<?php the_ID(); ?>">
				<header class="article-head">
					<p><span class="month"><?php the_time('M'); ?></span><br/><span class="day"><?php the_time('jS'); ?></span></p>
					<?php the_category(', '); ?> | <?php comments_popup_link('暂无评论', '1 条评论', '% 条评论'); ?>
					<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
				</header>
				<section class="article-body">
					<?php the_content('Read more on "'.the_title('', '', false).'" &raquo;'); ?>
				</section>
				<footer>
				<p>
						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// both comments and pings open ?>
						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// only pings are open ?>
							评论已关闭。
						<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// comments are open, pings are not ?>
						<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// neither comments nor pings are open ?>
							评论和trackback已关闭。
						<?php } edit_post_link('Edit this entry','','.'); ?>
				</p>
				</footer>
			<nav class="single-pagenav">
				<p><span class="single-pagenav-l"><?php previous_post_link(); ?></span> <span class="single-pagenav-r"><?php next_post_link(); ?></span></p>
			</nav>
			<?php comments_template(); ?>
			</article>

			<?php endwhile; ?>
			<?php else : ?>
			<article>
				<h1>Not Found</h1>
				<p>Sorry, but the requested resource was not found on this site.</p>
				<?php get_search_form(); ?>
			</article>
			<?php endif; ?>
	</div>
</div>
<?php get_footer(); ?>